Fix updating the registry too often
authorAlex Crichton <alex@alexcrichton.com>
Mon, 8 Dec 2014 06:25:26 +0000 (22:25 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 8 Dec 2014 06:28:43 +0000 (22:28 -0800)
commitaa97b32e2b630d43e102175195eed36970527e5f
tree9d19832a9d24030c0ad816d26de2cfeb62456cb8
parent4353abb71dee3a9ed1e21c20bfddd98cf251e59e
Fix updating the registry too often

It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes #991
src/cargo/core/registry.rs
src/cargo/core/source.rs
tests/support/git.rs
tests/test_cargo_registry.rs